package com.yunc.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.shop.entity.ShopItem;
import com.yunc.modules.shop.mapper.ShopItemMapper;
import com.yunc.modules.shop.service.IShopItemService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品表
 *
 * @author congcong tao
 * @create 2018/12/23 10:16 PM
 */
@Service("shopItemService")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ShopItemServiceImpl extends ServiceImpl<ShopItemMapper, ShopItem> implements IShopItemService {

    private final ShopItemMapper shopItemMapper;

    @Override
    public ShopItem getLockItem(String id) {
        return shopItemMapper.getLockItem(id);
    }
}
